package com.test.chatdemo.pojo;


public class User {

    private Integer id;
    private String name;
    private String password;
    private String code;    // 验证码
    private String captchaKey;


    public User() {
    }

    public User(Integer id, String name, String password, String code, String captchaKey) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.code = code;
        this.captchaKey = captchaKey;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return code
     */
    public String getCode() {
        return code;
    }

    /**
     * 设置
     * @param code
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 获取
     * @return captchaKey
     */
    public String getCaptchaKey() {
        return captchaKey;
    }

    /**
     * 设置
     * @param captchaKey
     */
    public void setCaptchaKey(String captchaKey) {
        this.captchaKey = captchaKey;
    }

    public String toString() {
        return "User{id = " + id + ", name = " + name + ", password = " + password + ", code = " + code + ", captchaKey = " + captchaKey + "}";
    }
}
